import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Strategy from '../views/Strategy.vue'
import Order from '../views/Order.vue'
import User from '../views/User.vue'
import App from "@/App.vue";
import Two from "@/views/Two.vue";
import Lv from "@/views/lvPage/Lv.vue";
import Smart from "@/views/Smart.vue";
import xiang from "@/views/xiang.vue";
import AboutView from "@/views/hotel/AboutView.vue";
import HomeView from "@/views/hotel/HomeView.vue";
import yon from "@/views/yon.vue";
import Leisure from "@/views/xiuxianyule/entertainment/Leisure.vue";
import Help from "@/views/Help.vue";
import Xq from "@/views/Xq.vue";
import Pageimil from "@/views/xiuxianyule/page/Pageimil.vue";
import Club from "@/views/xiuxianyule/shop/Club.vue";
import Food from "@/views/food/Food.vue";
import RestaurantDetail from "@/views/food/RestaurantDetail.vue";
import submitMeals from "@/views/food/submitMeals.vue";
import submitResult from "@/views/food/submitResult.vue";
import Index from "@/views/food/Index.vue";
import Ckan from "@/views/attraction/Ckan.vue";
import Jingdian from "@/views/attraction/Jingdian.vue";
import Jdgm from "@/views/attraction/Jdgm.vue";
import Jishao from "@/views/attraction/Jishao.vue";
import Payment from "@/views/attraction/Payment.vue";
import Rqbang from "@/views/attraction/Rqbang.vue";
import ScenicDetail from "@/views/attraction/ScenicDetail.vue";
import Xqing from "@/views/attraction/Xqing.vue";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'app',
    component: App
  },
  {
    path: '/yon',
    name: 'yon',
    component: yon
  },
  {
    path: '/xiang',
    name: 'xiang',
    component: xiang
  },
  {
    path: '/lv',
    name: 'lv',
    component: Lv
  },
  {
    path: '/two',
    name: 'two',
    component: Two
  },
  {
    path: '/index',
    name: 'index',
    component: Index
  },
  {
    path: '/homeview',
    name: 'homepage',
    component: HomeView
  },
    {
    path: '/jingdian',
    name: 'jingdianpage',
    component: Jingdian
  },
  {
    path: '/Food',
    name: 'Food',
    component: Food
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/strategy',
    name: 'Strategy',
    component: Strategy
  },
  {
    path: '/order',
    name: 'Order',
    component: Order
  },
  {
    path: '/user',
    name: 'User',
    component: User
  },
  {
    path: '/pageimil',
    name: 'pageimil',
    component: Pageimil
  },
  {
    path: '/club',
    name: 'club',
    component: Club
  },
  {
    path: '/leisure',
    name: 'leisure',
    component: Leisure
  },
  {
    path: '/smart',
    name: 'smart',
    component: Smart
  },
  {
    path: '/about',
    name: 'about',
    component: AboutView
  },
  {
    path: '/help',
    name: 'help',
    component: Help
  },
  {
    path: '/xq',
    name: 'xq',
    component: Xq
  },
  {
    path: '/RestaurantDetail',
    name: 'RestaurantDetail',
    component: RestaurantDetail
  },
  {
    path: '/submitMeals',
    name: 'submitMeals',
    component: submitMeals
  },
  {
    path: '/submitResult',
    name: 'submitResult',
    component: submitResult
  },
  {
    path: '/ckan',
    name: 'ckan',
    component: Ckan
  },
  {
    path:'/jdgm',
    name:'jdgm',
    component:Jdgm
  },
  {
    path:'/jishao',
    name:'jishao',
    component:Jishao
  },
  {
    path:'/payment',
    name: 'payment',
    component:Payment
  },
  {
    path:'/rqbang',
    name:'rqbang',
    component:Rqbang
  },
  {
    path:'/scenicDetail',
    name:'scenicDetail',
    component:ScenicDetail
  },
  {
    path:'/xqing',
    redirect:'/xqing',
    component:Xqing
  }


]

const router = new VueRouter({
  routes
})

export default router
